{include file="rootbase/head"}

<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>添加选手</h3>
        </div>
    </div>
    <div class="clearfix"></div>
    <div>
        <form action="http://www.tp5.com/vote/root/excel" method="post" enctype="multipart/form-data">
            <div>
                <table>
                    <tr>
                        <th class="center" style="line-height:30px;">批量导入:</th>
                        <td class="center" >
                            <input type="file" name="file" placeholder="附件上传" >
                        </td>
                    </tr>
                    <tr>
                        <th colspan="6">
                            <button type="submit">确认添加</button>
                        </th>
                    </tr>
                </table>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="x_panel">
                <div class="x_content">
                    <form class="" action="http://www.tp5.com/vote/root/doaddplayer" enctype="multipart/form-data" method="post" novalidate="">  
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">选手头像:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input type="file" name="pic">
                            </div>
                        </div>    
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">选手名:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input class="form-control" data-validate-length-range="6" data-validate-words="2" name="name" value="" required="required">
                            </div>
                        </div>    
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">选手性别<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input type="radio" name="sex" value="男" checked>男
                                <input type="radio" name="sex" value="女">女
                            </div>
                        </div>
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">参赛作品:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input class="form-control" data-validate-length-range="6" data-validate-words="2" name="work" value="" required="required">
                            </div>
                        </div> 
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">介绍:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input class="form-control" data-validate-length-range="6" data-validate-words="2" name="introduce" value="" required="required">
                            </div>
                        </div> 
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">选择赛事<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <select name="sid">
                                    {volist name='race' id='race'}
                                                <option value="{$race.rid}" selected>{$race.rname}</option>             
                                    {/volist}
                                </select>
                            </div>
                        </div>
                        <div class="ln_solid">
                            <div class="form-group">
                                <div class="col-md-6 offset-md-3">
                                    <button type="submit" class="btn btn-primary">添加</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="rootbase/foot"}